﻿using SqlSugar;
using System;

namespace YL.Core.Entity
{
    /// <summary>
    /// 设备状态
    /// </summary>
    [SugarTable("Meter_DeviceStatus")]
    public class DeviceStatus
    {
        [SugarColumn(IsPrimaryKey = true, IsIdentity = true)]
        public int StatusId { set; get; }
        /// <summary>
        /// 设备id
        /// </summary>
        public int DeviceId { set; get; } = 0;
        /// <summary>
        /// 设备状态
        /// </summary>
        public bool Status { set; get; }
        /// <summary>
        /// 最近一次上线时间
        /// </summary>
        public DateTime LastTime { set; get; }
        /// <summary>
        /// 设备当前ip
        /// </summary>
        public string ClientIp { set; get; }
    }
}
